//
//  WorkOrderRequest.m
//  PropertyMananger
//
//  Created by bh on 17/1/22.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "WorkOrderRequest.h"

@implementation WorkOrderRequest

#pragma mark -工单主页显示的报修单数量
+(void)postWorkNumSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}
#pragma mark - 公共报修与个人报修-列表
+(void)postPublicRepairSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 水电报修
+ (void)postEletricsRepairSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 投诉列表
+ (void)postComplainSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{


    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
}

#pragma mark - 各种订单列表查询
+ (void)postOrderListQuerySuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];

}

#pragma mark - 统计
+ (void)postStaticsSuccess:(SuccessBlock)successBlock Fail:(FailBlock)failBlock param:(NSDictionary *)param{

    NSString * urlStr = [NSString stringWithFormat:@"%@/Handler/RepairAndComplaint.ashx",Server_IP];
    [BHNetWorkRequest startPostWithUrl:urlStr Success:successBlock Fail:failBlock param:param];
}

@end
